import request from '@/utils/request'

// 获取员工信息表
export const getUserManageList = (data) => {
  return request({
    url: '/userManageList',
    method: 'GET',
    params: data
  })
}

// 获取全部员工信息表
export const getAllUserManageList = () => {
  return request({
    url: '/getAllUserManageList',
    method: 'GET'
  })
}

// 上传excel数据
export const userBatchImport = (data) => {
  return request({
    url: '/import',
    method: 'GET',
    data
  })
}

// 删除指定数据
export const deleteUser = id => {
  return request({
    url: 'deleteManageUser',
    id: id,
    method: 'GET'
  })
}

// 获取用户详情
export const userDetail = id => {
  return request({
    url: '/userManageDetail',
    id
  })
}
